{% extends "adminbase.html" %}
{% block scripts %}
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}profile/css/autoSuggest.css" />
	
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}profile/css/ie6.css" /><![endif]-->

    <script language="javascript" src="{{ STATIC_URL }}profile/js/jquery-1.7.1.js"></script>
    <script language="javascript" src="{{ STATIC_URL }}profile/js/jquery.autoSuggest.packed.js"></script>
<script>

$(document).ready(function() {
	var data = {items: {{ usernames|safe }} };
	$("input[id=users]").autoSuggest(data.items, {selectedItemProp: "name", searchObjProps: "name", asHtmlID: "users", startText: "Enter Usernames Here"});
	
});  
</script>
{% endblock %}

{% block content %}

<h1>Unban Users</h1>

{% if success_message %}
	<font class="success">{{ success_message }}</font><br/><br/>
{% endif %}
<form name="thread" action="/admins/unbanUsers/" method="post">{% csrf_token %}
	<input id="users" type="text" />
	<br/>
	<input id="search_btn" type="submit" value="Unban"/>
</form>
{% endblock %}
